#ifndef QXGAME_GAMETEST_H
#define QXGAME_GAMETEST_H

#include "SDL.h"
#include "GameVector.h"
#include "GameShape.h"
#include "../data/GameInfo.h"

static bool test_mode_flag = false;

static void RendererRect(GameVector position, GameShape shape, SDL_Color color)
{
    // 绘制边框
    SDL_Rect rect;
    rect.x = position.x - shape.w / 2;
    rect.y = position.y - shape.h / 2;
    rect.w = shape.w;
    rect.h = shape.h;
    SDL_SetRenderDrawColor(GAME_RENDERER, color.r, color.g, color.b, color.a);
    SDL_RenderDrawRect(GAME_RENDERER, &rect);
}

#endif //SURVIVALGAME_TEST_H
